﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="oktelerhetoseg.aspx.cs" Inherits="NEMProjectWebApp.Pages.Diak.ertekeles" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style2
        {
            height: 35px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table>
    <tr>
    <td>
    
    <table>
        <tr>
            <td>
                <asp:Label ID="EmailkeresLabel" runat="server" Text="E-mail:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="EmailkeresTextBox" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Button ID="KeresButton" runat="server" Text="Keresés" 
                    onclick="KeresButton_Click" />
            </td>
        </tr>
        <tr>
            <td colspan="3" class="style2" valign="bottom">
                <asp:Label ID="OktatokLabel" runat="server" Text="Oktatók:"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:ListBox ID="OktatokListBox" runat="server" Height="299px" Width="300px" 
                    DataSourceID="SqlDataSourceOktatok" DataTextField="adat" 
                    DataValueField="User_ID" 
                    onselectedindexchanged="OktatokListBox_SelectedIndexChanged"></asp:ListBox>
                <asp:SqlDataSource ID="SqlDataSourceOktatok" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:masterConnectionString %>" 
                    SelectCommand="SELECT User_ID, (VezNev + ' ' + KerNev ) AS adat FROM Felhasznalo Where FelhasznJogkorei_ID = @OktatoJog_ID">
                    <SelectParameters>
                        <asp:Parameter DefaultValue="3" Name="OktatoJog_ID" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
        </tr>
    </table>

    </td><td>

    <table>
        <tr>
            <td colspan="2">
                <asp:Label ID="CimLabel" runat="server" 
                    Text="Kiválasztott oktató elérhetőségei/konzultációs időpontjai:"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="EmailLabel" runat="server" Text="E-mail:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="EmailTextBox" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="TelszamLabel" runat="server" Text="Telefonszám:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="TelszamTextBox" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="SzobaLabel" runat="server" Text="Szobaszám:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="SzobaTextBox" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="KonzLabel" runat="server" Text="Konzultáció időpontja:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="KonzTextBox" runat="server"></asp:TextBox>
            </td>
        </tr>
    </table>

    </td>
    </tr>
    </table>
</asp:Content>
